package com.cloudsigns.factorymanager2.produce.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.GridView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class ProduceEndHandoverAcceptanceActivity1 extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private TextView tv_submit_team, tv_acceptance, tv_submit_num, tv_complete_num, tv_return_num, tv_return_reason;
    private GridView gridView;
    private LinearLayout ll_2;
    private Button btn_submit;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_produce_end_handover_acceptance1);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        tv_submit_team = findViewById(R.id.tv_submit_team);
        tv_acceptance = findViewById(R.id.tv_acceptance);
        tv_submit_num = findViewById(R.id.tv_submit_num);
        tv_complete_num = findViewById(R.id.tv_complete_num);
        tv_return_num = findViewById(R.id.tv_return_num);
        tv_return_reason = findViewById(R.id.tv_return_reason);
        ll_2=findViewById(R.id.ll_2);
        btn_submit = findViewById(R.id.btn_submit);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText(getResources().getString(R.string.acceptance));
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        tv_acceptance.setOnClickListener(this);
        btn_submit.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
            // 验收
            case R.id.tv_acceptance:
                Intent intent=new Intent(ProduceEndHandoverAcceptanceActivity1.this,ProduceEndHandoverAcceptanceActivity2.class);
                startActivity(intent);
                break;
            // 确认验收
            case R.id.btn_submit:
                break;
        }
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        switch (requestCode) {

        }
        super.onActivityResult(requestCode, resultCode, data);
    }
}
